package com.kaili.basic.mapper;


import com.kaili.basic.pojo.entity.OutboundReturnProduct;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


/**
 * Created by xxx on 18-4-25.
 */

@Mapper
public interface OutboundReturnProductMapper {

    //添加出库退货产品
    int addOutboundReturnProduct(OutboundReturnProduct outboundReturnProduct);

    //删除出库退货产品
    int deleteOutboundReturnProduct(OutboundReturnProduct outboundReturnProduct);

    //删除出库退货产品
    int deleteOutboundReturnProductList(Map<String, Object> map);

    //修改出库退货产品
    int updateOutboundReturnProduct(OutboundReturnProduct outboundReturnProduct);

    //修改状态（确认或者取消）
    int updateConfirmToCancel(OutboundReturnProduct outboundReturnProduct);

    //根据id查询获取出库退货产品
    OutboundReturnProduct getOutboundReturnProductById(Long id);

    //根据id查询获取出库退货产品（包括删除的）
    OutboundReturnProduct getOutboundReturnProductByIdAll(Long id);

    //根据出库申请表id查询获取出库退货产品集合
    List<OutboundReturnProduct> getOutboundReturnProductList(Long returnId);
}
